package com.coolgor.axnut.dto.mdmis;

import java.util.List;

import com.coolgor.axnut.entity.mdmis.PolicyMonitor;
import com.coolgor.axnut.enums.mdmis.PolicyMonitorOperationStateEnum;

public class PolicyMonitorExecution {
	// 结果状态
	private int state;

	// 状态标识
	private String stateInfo;

	// 执行结果的数量
	private int count;

	// 操作的对象(增删改的时候用到)
	private PolicyMonitor policyMonitor;

	// 获取的结果列表(查询列表的时候使用)
	private List<PolicyMonitor> list;

	public PolicyMonitorExecution() {	}

	// 操作失败的时候使用的构造器
	public PolicyMonitorExecution(PolicyMonitorOperationStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public PolicyMonitorExecution(PolicyMonitorOperationStateEnum stateEnum, PolicyMonitor policyMonitor) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.policyMonitor = policyMonitor;
	}

	// 查询 操作成功的时候使用的构造器
	public PolicyMonitorExecution(PolicyMonitorOperationStateEnum stateEnum, List<PolicyMonitor> list) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.list = list;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public PolicyMonitor getPolicyMonitor() {
		return policyMonitor;
	}

	public void setPolicyMonitor(PolicyMonitor policyMonitor) {
		this.policyMonitor = policyMonitor;
	}

	public List<PolicyMonitor> getList() {
		return list;
	}

	public void setList(List<PolicyMonitor> list) {
		this.list = list;
	}

}
